import Layout from '@/views/layout.vue'
import Home from '@/views/home.vue' //首页
import LookHHome from '@/views/lookHome.vue' // 看房
import Consult from '@/views/consult.vue' //咨询
import User from '@/views/user.vue' //我的


import Content from '@/views/content.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/home',
    // 二级路由规则
    children: [
      {
        path: '/home',
        component: Home,
      },
      {
        path: '/lookHome',
        component: LookHHome,
      },
      {
        path: '/consult',
        component: Consult,
      },
      {
        path: '/user',
        component: User,
      },
    ],
  },
  {
    name:'content',
    path: '/content',
    component: Content,
  },
]

export default routes
